package com.leyou.personnel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.pojo.Result;
import com.leyou.personnel.data.dto.AdministratorsRoleDto;
import com.leyou.personnel.data.entity.AdministratorsRole;
import com.leyou.personnel.data.vo.RoleListShowSearchVo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xhh
 * @since 2022-05-18
 */
public interface AdministratorsRoleService extends IService<AdministratorsRole> {
    /**
     * 全查
     *
     * @author: xhh
     * @date: 2022/5/23
     * @description:
     * @return:
     * @params:
     */
    public Result roleList();
    /**
     * 带分页和搜索参数的查询
     *
     * @author: xhh
     * @date: 2022/5/26
     * @description:
     * @return:
     * @params:
     */
    public Result roleListShow(RoleListShowSearchVo vo);
    /**
     * role添加
     *
     * @author: xhh
     * @date: 2022/5/26
     * @description:
     * @return:
     * @params:
     */
    public Result roleInsert(AdministratorsRoleDto administratorsRoleDto);
    /**
     * role批量删除
     *
     * @author: xhh
     * @date: 2022/5/26
     * @description:
     * @return:
     * @params:
     */
    @RequestMapping(value = "/roleDel",method = RequestMethod.POST)
    public Result roleDel(List<String> list);
    /**
     * 授权回显
     *
     * @author: xhh
     * @date: 2022/5/26
     * @description:
     * @return:
     * @params:
     */

    public Result roleEmpowerEcho(String roleNumber);
    /**
     * 授权修改
     *
     * @author: xhh
     * @date: 2022/5/26
     * @description:
     * @return:
     * @params:
     */
    public Result roleEmpowerModify(AdministratorsRoleDto administratorsRoleDto);
}
